﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Socket服务器
{
    /// <summary>
    /// 日志的集合
    /// </summary>
    public class PrintListColl: ObservableCollection<PrintList >
    {

    }

    public class PrintList : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string propertyname)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyname));
        }

        private string  str;
        /// <summary>
        /// 要显示的文档
        /// </summary>
        public string WriteString
        {
            get { return str; }
            set {
                str = value;
                OnPropertyChanged("OnPropertyChanged");
            }
        }

        private Brush fontColor;
        /// <summary>
        /// 字体颜色
        /// </summary>
        public Brush FontColor
        {
            get { return fontColor; }
            set {
                fontColor = value;
                OnPropertyChanged("FontColor");
            }
        }

        private Brush backColor;
        /// <summary>
        /// 背景颜色
        /// </summary>
        public Brush BackColor
        {
            get { return backColor; }
            set
            {
                backColor = value;
                OnPropertyChanged("BackColor");
            }
        }


    }
}
